<template>
  <div>comp2</div>
</template>

<script>
import { bus } from './bus.js'
export default {
  mounted () {
    bus.$on('id-selected', function (id) {
      alert(id)
    })
  }
}
</script>